package cdu.javaendwork.model.sqlModel;

import java.math.BigDecimal;
import java.util.Date;

public class Order {
    private int id;
    private int userid;
    private int status;
    private Date date;
    private BigDecimal price;
    private String ref;

    public Order() {
    }

    public Order(int id, int userid, int status, Date date, BigDecimal price, String ref) {
        this.id = id;
        this.userid = userid;
        this.status = status;
        this.date = date;
        this.price = price;
        this.ref = ref;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getRef() {
        return ref;
    }

    public void setRef(String ref) {
        this.ref = ref;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", userid=" + userid +
                ", status=" + status +
                ", date=" + date +
                ", price=" + price +
                ", ref='" + ref + '\'' +
                '}';
    }
}
